package com.algorithm.middleware.LFU;

/**
 * @author liyanhao
 * @Date 2023-02-12 20:55
 */
public class Node {

    private int key;
    private int value;
    private int fred = 0;

    public Node(int key, int value) {
        this.key = key;
        this.value = value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    public int getValue() {
        return value;
    }

    public int getKey() {
        return key;
    }

    public int getFred() {
        return fred;
    }

    public void fredInc() {
        fred++;
    }
}
